import request from '@/utils/request'

// 查询科室信息
export function getGroup(query) {
  return request({
    url: '/physical/input/list',
    method: 'get',
    params: query
  })
}
//人员列表
export function getRegisters(groupId) {
  return request({
    url: '/physical/input/' + groupId,
    method: 'get'
  })
}
//人员信息
export function getInputResult(groupId,physicalId) {
  return request({
    url: `/physical/input/${groupId}/${physicalId}`,
    method: 'get'
  })
}
//撤销
export function cancelInputResult(groupId,physicalId) {
  return request({
    url: `/physical/input/${groupId}/${physicalId}`,
    method: 'delete'
  })
}
//保存
export function saveInput(data) {
  return request({
    url: '/physical/input',
    method: 'post',
    data: data
  })
}
// 通过体检编号查人员
export function getInputByCheckcode(checkcode) {
  return request({
    url: '/physical/input/search/' + checkcode,
    method: 'get'
  })
}
